package uk.ac.glasgow.demosocs.impl;

import uk.ac.glasgow.demosocs.Vote;

public class AltVote implements Vote {
	
	private String candidateGUID;
	private int preference;
	
	public AltVote(String candidateGUID, int preference){
		this.candidateGUID = candidateGUID;
		this.preference = preference;
	}
	
	public String getCandidateGUID() {
		return candidateGUID;
	}
	
	public void setCandidateGUID(String candidateGUID) {
		this.candidateGUID = candidateGUID;
	}
	
	public int getPreference() {
		return preference;
	}

	public void setPreference(int preference) {
		this.preference = preference;
	}

	public String toString(){
		return this.candidateGUID + " " + this.preference;
	}
}
